//
// Author: Vladimir Migashko <migashko@gmail.com>, (C) 2011
//
// Copyright: See COPYING file that comes with this distribution
//
#ifndef HITLIST_HIT_COUNTS_JSON_HPP
#define HITLIST_HIT_COUNTS_JSON_HPP

#include <fas/misc/json.hpp>
#include <fas/misc/command/basic_command.hpp>

#include "names.hpp"
#include "hit_counts.hpp"

namespace aj = ::fas::json;
namespace ap = ::fas::pattern;

/** @typedef hit_counts_json json-сериалиатор для hit_counts */
typedef
  aj::object<
    hit_counts,
    ap::type_list_n<
      aj::member<n_hits_d,  hit_counts, size_t, &hit_counts::hits_d>,
      aj::member<n_hits_m,  hit_counts, size_t, &hit_counts::hits_m>,
      aj::member<n_hosts_d, hit_counts, size_t, &hit_counts::hosts_d>,
      aj::member<n_hosts_m, hit_counts, size_t, &hit_counts::hosts_m>
    >::type
  > hit_counts_json;


#endif

